/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author sagar
 */
@Entity
@Table(name = "ambulance")
@NamedQueries({
    @NamedQuery(name = "Ambulance.findAll", query = "SELECT a FROM Ambulance a"),
    @NamedQuery(name = "Ambulance.findByAmbulanceId", query = "SELECT a FROM Ambulance a WHERE a.ambulanceId = :ambulanceId"),
    @NamedQuery(name = "Ambulance.findByCompanyName", query = "SELECT a FROM Ambulance a WHERE a.companyName = :companyName"),
    @NamedQuery(name = "Ambulance.findByContact", query = "SELECT a FROM Ambulance a WHERE a.contact1 = :contact1")})
public class Ambulance implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "AMBULANCE_ID")
    private Integer ambulanceId;
    @Column(name = "COMPANY_NAME")
    private String companyName;
    @Column(name = "CONTACT_1")
    private String contact1;
    @Column(name = "CONTACT_2")
    private String contact2;
    @Column(name = "CONTACT_3")
    private String contact3;
    @Lob
    @Column(name = "NOTES")
    private String notes;

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Ambulance() {
    }

    public Ambulance(Integer ambulanceId) {
        this.ambulanceId = ambulanceId;
    }

    public Integer getAmbulanceId() {
        return ambulanceId;
    }

    public void setAmbulanceId(Integer ambulanceId) {
        this.ambulanceId = ambulanceId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContact1() {
        return contact1;
    }

    public void setContact1(String contact1) {
        this.contact1 = contact1;
    }

    public String getContact2() {
        return contact2;
    }

    public void setContact2(String contact2) {
        this.contact2 = contact2;
    }

    public String getContact3() {
        return contact3;
    }

    public void setContact3(String contact3) {
        this.contact3 = contact3;
    }
}
